package com.slf.common.util;

/**
 * @author slf
 * @date 2021/8/18
 */
public enum ResultCode {
    SUCCESS(0,"操作成功"),
    FAILED(-1,"操作失败");

    private final int code;
    private final String msg;

    ResultCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
